﻿<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
response.Redirect("info/")
if InStrRev(request.ServerVariables("HTTP_REFERER"),"no-cache.aspx")<>0 then
response.Redirect("no-cache.aspx")
end if

'生成随机数函数
Function GetRandomizeCode()
 Randomize
 Dim m_strRandArray,m_intRandlen,m_strRandomize,i
 m_strRandArray = Array(0,1,2,3,4,5,6,7,8,9,"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z")
 m_intRandlen = 16 ''定义随机码的长度
 for i = 1 to m_intRandlen
  m_strRandomize = m_strRandomize & m_strRandArray(Int((21*Rnd)))
 next
 GetRandomizeCode = m_strRandomize
End Function

if request.QueryString("num")="" then
	dim url
	url=Request.ServerVariables("PATH_INFO")
	'url=Request.ServerVariables("HTTP_REFERER")
	url=url+"?num="+GetRandomizeCode()
	response.Redirect(url)
else
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-store" />
<title>普通话网络课程</title>
<link href="skin/default/main.css" rel="stylesheet" type="text/css" />
<link href="skin/default/default.css" rel="stylesheet" type="text/css" />
<script language=javascript>
//显示登录窗口
function show(){
	showModalDialog("login.asp?from=foot&num=<%=GetRandomizeCode()%>", window, "dialogWidth:300px; dialogHeight:200px; status:0; help:0");
}
//检测浏览器
/*
//检测IE7浏览器
function checkBrowse(){
if (!window.XMLHttpRequest || !window.ActiveXObject) { //IE6, Mozilla, Safari
    var r=confirm('为了达到更好的浏览效果，请使用IE7浏览器！\n点击确定，现在下载IE7浏览器！');
	if(r==true) window.location="http://dl.google.com/toolbar/data/ie7/IE7Setup_G_ZH-CN.exe";
	else {
			alert("哦，真遗憾，访问被拒绝！");
			document.write("想继续访问本网站，请下载并安装<a href='http://dl.google.com/toolbar/data/ie7/IE7Setup_G_ZH-CN.exe'>IE7浏览器</a>！");
		 }
}
}
*/
//检测IE浏览器
function checkBrowse(){
	if("\v"=="v"){
		var r=confirm('您正在使用的是IE浏览器！\n推荐您使用Firefox浏览器！');
		if(r==true) window.location="http://download.mozilla.org/?product=firefox-3.0.8&os=win&lang=zh-CN";
		/*else {
			alert("哦，真遗憾，访问被拒绝！");
			document.write("想继续访问本网站，请刷新本页面，选择确定并安装IE7浏览器！");
		 }*/
	}
}

//预载
simplePreload( 'skin/default/images/btnLink.gif', 'skin/default/images/btnHover.gif','skin/default/images/default.gif'); 

function simplePreload()

{ 

  var args = simplePreload.arguments;

  document.imageArray = new Array(args.length);

  for(var i=0; i<args.length; i++)

  {

    document.imageArray[i] = new Image;

    document.imageArray[i].src = args[i];

  }

}
</script>
</head>
<body>
<%
'初始化Cookies
function initCookies()
	response.Cookies("username")=""
	response.Cookies("passwd")=""
	response.Cookies("RemMe")=0
	response.Cookies("userIdent")="guest"
end function
call initCookies
%>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td height="80px" colspan="3">&nbsp;</td></tr>
<tr>
<td>&nbsp;</td>
<td width="808px" height="500px" style="background:url(skin/default/images/default.gif) no-repeat">
<div id="default_main">
<!--default正文开始-->
<div id="logo"><img src="skin/default/images/logo.gif" width="274" height="57" /></div>
<div id="menu">
<ul id="navigation">
    <li><a href="info"><span>信息资源共享</span></a></li>
	<li><a href="comm"><span>师生交流评价</span></a></li>
	<li><a href="test"><span>普通话学习</span></a></li>
</ul>
</div>
<div id="default_body"><img src="skin/default/images/pic.gif" /></div>
<div id="default_foot"><p align="center">DOCITE.COM&nbsp;&nbsp;<a href="http://pth-e.googlecode.com" target="_blank">PTH-E</a>&nbsp;&nbsp;版权所有2007-2009.<a href="javascript:void(0)" onclick=show()>[管理员登录]</a><br />
    COPYRIGHT (C) 2007 - 2009 <a href="http://pth-e.googlecode.com" target="_blank">PTH-E</a> ALL RIGHTS RESERVED.</p></div>
<!--default正文结束-->
</div>
</td>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>
<%
end if
%>